<?php

use App\Http\Controllers\Activity\Web\ShopOrderActivityController;
use App\Http\Middleware\OpenShop\FeishuWebAuth;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::prefix('manual')->group(function () {

    Route::prefix('web')->group(function () {
        // 手动推送活动消息
        Route::get('orderActivity', [ShopOrderActivityController::class, 'manualSendNotifyWeb']);
    });


    Route::prefix('api')->middleware([FeishuWebAuth::class])->group(function () {
        Route::post('orderActivity', [ShopOrderActivityController::class, 'manualSendNotify']);
    });

});
